package org.easymis.crm.modules.crm.entitys.mybatis.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.easymis.crm.modules.crm.entitys.mybatis.dto.CrmCustomer;

public interface CrmCustomerMapper {
	@Select("select * from crm_customer")
	@Results(value = { @Result(property = "customerId", column = "customer_id"),
			@Result(property = "orgId", column = "org_id")})
	public List<CrmCustomer> getList(HashMap<String, Object> params);

	public void save(CrmCustomer bean);

	public void saveBatch(List<CrmCustomer> beans);

	public void update(CrmCustomer bean);

	public void delete(String customerId);

	public void removeBatch(List<String> list);

	public void restoreBatch(List<String> list);

	public void deleteBatch(List<String> list);

	public CrmCustomer findById(String customerId);

	public List<CrmCustomer> findByIds(List<String> list);
}
